package com.shape.sdk.net;

/**
 * Created by ouzhiyin on 30/01/2018.
 */

public class ShapeContants {
  public static String BASE_SCHEME = "http";
  public static String BASE_HOST = "fit.runninglemon.com";
  public static String QUERY_PUSH_SERVER_PORT = "api/v1/store/pull_host";
  public static String QUERY_COURSE_SYNC = "api/v1/course/sync";
  public static String QUERY_COURSE_SIGNED_USER = "api/v1/booking/sign";
  public static String POST_COURSE_RESULT = "api/v1/course/complete";


  public static final int NOTIFICATION_TYPE_SCHEDULE  = 1;
  public static final int NOTIFICATION_TYPE_BOOKING   = 2;
  public static final int NOTIFICATION_TYPE_BINDING   = 3;
  public static final int NOTIFICATION_TYPE_CHECKIN   = 4;
  public static final int NOTIFICATION_TYPE_BEGIN     = 5;
  public static final int NOTIFICATION_TYPE_FINISH    = 6;
  public static final int NOTIFICATION_TYPE_EMERGENCY = 99;
  public static final int NOTIFICATION_TYPE_UPGRADE   = 100;
  public static final int NOTIFICATION_TYPE_SYNC      = 101;
  public static final int NOTIFICATION_TYPE_ACK       = 102;
  public static enum NotificationType {
    Schedule(1),
    Booking(2),
    Binding(3),
    CourseCheckin(4),
    CourseBegin(5),
    CourseFinish(6),
    Emergency(99),
    Upgrade(100);

    private final int priority;

    NotificationType(int priority) {
      this.priority = priority;
    }

    boolean priority(NotificationType s) {
      return priority < s.priority;
    }
  }
}
